package com.vm.osm.business.util;


import com.vm.osm.business.dto.rsp.HttpRspResult;

import java.util.Map;

/** api调用工具类
 * Created by zhangshilin on 2018/2/5.
 */
public class ApiCallUtil {

    public static HttpRspResult callPost(String postUrl, Map<String,String> paramMap){
        return HttpUtil.httpPostReq(postUrl,paramMap);
    }
    public static HttpRspResult callGet(String getUrl, Map<String,Object> paramMap){
        return HttpUtil.httpGetReq(getUrl,paramMap);
    }

    public static HttpRspResult callGet(String getUrl){
        return HttpUtil.httpGetReq(getUrl);
    }

    public static HttpRspResult callPut(String postUrl, Map<String,String> paramMap){
        return HttpUtil.httpPutReq(postUrl,paramMap);
    }

    public static HttpRspResult callDelete(String deleteUrl){
        return HttpUtil.httpDeleteReq(deleteUrl);
    }
}
